package cn.com.pdfdemo.entity;

import cn.com.pdfdemo.pdfUtil.Enums.ContextTypeEnums;
import cn.com.pdfdemo.pdfUtil.annotation.CellProperty;
import com.itextpdf.layout.property.TextAlignment;
import lombok.Data;

import java.util.List;

/**
 * 表单实体
 * 
 * @author wangyw
 */
@Data
public class Demo{
   /** ID */
   @CellProperty(name = "小标题", isHead = true, colspan = 4, rowspan = 1, textAlignment = TextAlignment.CENTER)
    private String title;

   /** ID */
   @CellProperty(name = "ID")
    private Long id;

    @CellProperty(name = "下单时间", colspan = 1, rowspan = 1)
    private String time;

    @CellProperty(name = "支付金额", colspan = 1, rowspan = 1)
    private Double price;

    @CellProperty(name = "联系电话", colspan = 1, rowspan = 1)
    private String mobile;

    @CellProperty(name = "备注", colspan = 3, rowspan = 1, showType = true, separator = ",")
    private String ramark;

    @CellProperty(name = "商品详情", contextType = ContextTypeEnums.TABLE, border = true)
    private List<DemoSub> demoSubs1;

    @CellProperty(name = "商品详情", contextType = ContextTypeEnums.TABLE, border = true)
    private List<DemoSub> demoSubs2;

}
